<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>

<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>试卷新增</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      text-align: center;
      background: url("${base}/Desert.jpg");
      background-size: cover;
    }

    #c {
      margin: auto;
      margin-top: 70px;
      opacity: 0.8;
      width: 1000px;
      height: 600px;
    }
    #left {
      width: 700px;
      height: 600px;
      background: rgb(255, 255, 255);
      margin: auto;
      border-radius: 20px;
      padding-top: 10px;
      position: relative;
    }
    input {
      width: 270px;
      border-top-style: hidden;
      border-right-style: hidden;
      border-left-style: hidden;
      background: none;
      margin: 0;
      text-align: center;
    }
    p {
      color: gray;
      height: 30px;
    }
    #file {
      margin-top: 10px;
      color: #616161;
    }
    button {
      margin-top: 50px;
      width: 250px;
      height: 33px;
      border-radius: 20px;
      border: 0px;
      background-color: #c0ca33;
      color: #FFF;
      font-size: 16px;
    }
    span {
      position: absolute;
      left: 30px;
      color: red;
      font-size: 13px;
    }
  </style>
</head>
<body>
<div id="c">
  <div id="left">
    <h1>添加试卷</h1>
    <form action="${base}/exam/addExam" method="post">
      <input name="username" value="${theUser.name}" type="hidden">
      <p><span id="acterror"></span>科目：
      <select name="subject" style="width: 300px;height: 20px">
        <c:forEach var="t"  items="${titleType}">
        <option value="${t.type}">${t.type}</option>
        </c:forEach>
      </select>
      </p>
      <p> 单选题数量:
      <select name="choicenum">
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
      </select>
      </p>
      <p>
        班级id:
        <select name="classid" style="width: 300px;height: 20px">
          <c:forEach var="c"  items="${classes}">
            <option value="${c.id}">${c.id}</option>
          </c:forEach>
        </select>
      </p>
      <button id="sub" type="submit" >增加</button>
    </form>
  </div>
</div>
<script src="${base}/jquery-3.0.0.min.js"></script>
<script>
</script>
</body>
</html>

